package org.abio.XasML.converter
{
	public function object2Boolean(obj:Object):Boolean
	{
		if(obj is Boolean){
			return obj as Boolean;
		}else if(obj is String){
			if(obj=='true' || obj=='True' || obj=='TRUE'
				|| obj=='right' || obj=='Right' || obj=='RIGHT'
				|| obj=='yes' || obj=='Yes' || obj=='YES'
				|| obj=='ok' || obj=='Ok' || obj=='OK'){
				return true;
			}else{
				return false;
			}
		}else{
			return obj as Boolean;
		}
	}
}